gsk: Add high depth rendernode api
authorMatthias Clasen <mclasen@redhat.com>
Fri, 1 Oct 2021 20:23:12 +0000 (16:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 7 Oct 2021 01:35:25 +0000 (21:35 -0400)
commit2a08641f595f9e199f6d8cc5f58f34cb3080c322
tree279b03e7475a4b6b8e48a8ca2a68158cbd9a5038
parent8950c0dc960da50e7e38bcb5984b74286a9f178c
gsk: Add high depth rendernode api

Add private api to find out if the content
of a render node should be considered 'deep'.

The information is collected at creation time,
so there is no tree-walking involved when we
are using this information in the renderer.

Currently, this comes down to whether there are
any texture nodes with high depth textures in the subtree.
In the future, we may want to allow marking gradient
nodes in this way as well.
gsk/gskrendernode.c
gsk/gskrendernodeimpl.c
gsk/gskrendernodeprivate.h